-- GENERATED SPELL FOR [Onslaught Raven Priest] --


function spell0_27202(pUnit, Event) --@Raven Flock,n/a--
pUnit:FullCastSpellOnTarget(50740,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27202', 3000, 1)
end

function spell1_27202(pUnit, Event) --@Raven Heal,Self--
pUnit:FullCastSpellOnTarget(50750,pUnit)
pUnit:RegisterEvent('Sorts_27202', 5000, 1)
end

function Sorts_27202(pUnit, Event)
local choix_sorts_27202 = math.random(0, 1)
if choix_sorts_27202 == 0 then
pUnit:RegisterEvent('spell0_27202', 1, 1)
end
if choix_sorts_27202 == 1 then
pUnit:RegisterEvent('spell1_27202', 1, 1)
end
end

function mob27202_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27202', math.random(1500, 3000), 1)
end

function mob27202_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27202_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27202_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27202, 1, 'mob27202_Action')
RegisterUnitEvent(27202, 2, 'mob27202_Leave')
RegisterUnitEvent(27202, 3, 'mob27202_Kill')
RegisterUnitEvent(27202, 4, 'mob27202_Die')
